package com.usian.usianleadonewsuser.feing;

import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.pojos.WmUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("leadnews-wemedia")
public interface WemediaFeing {
    @RequestMapping("/wemedia/api/findByName/{name}")
    public WmUser findByName(@PathVariable(value = "name") String name);

    @RequestMapping("/wemedia/api/save")
    public ResponseResult add(@RequestBody WmUser wmUser);
}
